﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>专家说明——风声 ASP 无组件上传类 V2.11 [Fonshen ASP UpLoadClass Version 2.11]</title>
<meta name="Keywords" content="ASP,无组件上传,上传组件,图片上传,风声,风声边界,Fonshen,Upload" />
<meta name="Description" content="风声 ASP 无组件上传类,Fonshen ASP UpLoadClass" />
<link href="../styles/works.css" rel="stylesheet" type="text/css" />
<style type="text/css">
table { font-size:12px; }
td { text-align:center; }
</style>
</head>
<body id="UpLoadClass_V2.11">
	<div id="Context">
		<div id="Topic">
            风声 ASP 无组件上传类 V2.11 [Fonshen ASP UpLoadClass Version 2.11]
		</div>
		<div id="Nav">
			<a href="http://www.fonshen.com">更多风声作品</a>
		</div>
		<div id="Menu">
			<a href="../index.htm">首 页</a>
			<a href="help1.htm">对象参考</a>
			<a>专家说明</a>
			<a href="../demo1/index.htm">范例一</a>
			<a href="../demo2/index.htm">范例二</a>
			<a href="../demo3/index.htm">范例三</a>
			<a href="../speed/index.htm">速度测试</a>
			<a href="../speed/uplist.asp">测试结果</a>
		</div>
		<p id="Title">
			UpLoadClass对象[专家说明]
		</p>
		<div id="Content">
			<div>
				<p>
					１、可直接修改类设置自己需要的默认设置，修改行号分别为：<br />
					行70：m_Charset = &quot;gb2312&quot;　' 默认字符集<br />
					行71：m_TotalSize= 0　' 总上传大小限制，0为不限制<br />
					行72：m_MaxSize = 153600　' 单文件大小限制，0为不限制<br />
					行73：m_FileType = &quot;jpg/gif&quot;　' 文件格式限制，&quot;&quot;为不限制<br />
					行74：m_SavePath = &quot;&quot;　' 文件相对保存位置，&quot;&quot;为当前目录<br />
					行75：m_AutoSave = 0　' 保存模式，0为自动重命名保存
				</p>
				<p>２、文本域不同时刻的状态比较</p>
				<table width="100%" border="0" cellpadding="2" cellspacing="1">
					<tr>
						<th>项目</th>
						<th width="259" align="center">对象打开前</th>
						<th width="259" align="center">对象打开后</th>
					</tr>
					<tr>
						<td>.Form(Item)</td>
						<td width="259" align="center">temp</td>
						<td width="259" align="center">文本域内容</td>
					</tr>
				</table>
				<p>3、文件域不同时刻的状态比较</p>
				<table width="100%" border="0" cellpadding="2" cellspacing="1">
					<tr>
						<th rowspan="2">项目</th>
						<th width="83" rowspan="2">
							对象<br />
							打开前
						</th>
						<th colspan="2">对象打开后</th>
						<th colspan="3">文件保存后</th>
					</tr>
					<tr>
						<th width="83">无文件</th>
						<th width="83">有文件</th>
						<th width="83">无文件</th>
						<th width="83">有文件且符合</th>
						<th width="83">有文件不符合</th>
					</tr>
					<tr>
						<td>.Form(Item)</td>
						<td width="83">&quot;&quot;</td>
						<td width="83">&quot;&quot;</td>
						<td width="83">&quot;&quot;</td>
						<td width="83">&quot;&quot;</td>
						<td width="83">目标文件名</td>
						<td width="83">&quot;&quot;</td>
					</tr>
					<tr>
						<td>.Form(Item&amp;&quot;_TYPE&quot;)</td>
						<td width="83">&quot;&quot;</td>
						<td width="83">&quot;&quot;</td>
						<td width="83">文件类型</td>
						<td width="83">&quot;&quot;</td>
						<td width="83">文件类型</td>
						<td width="83">文件类型</td>
					</tr>
					<tr>
						<td>.Form(Item&amp;&quot;_Name&quot;)</td>
						<td width="83">&quot;&quot;</td>
						<td width="83">&quot;&quot;</td>
						<td width="83">源文件名</td>
						<td width="83">&quot;&quot;</td>
						<td width="83">源文件名</td>
						<td width="83">源文件名</td>
					</tr>
					<tr>
						<td>.Form(Item&amp;&quot;_Path&quot;)</td>
						<td width="83">&quot;&quot;</td>
						<td width="83">&quot;&quot;</td>
						<td width="83">上传路径</td>
						<td width="83">&quot;&quot;</td>
						<td width="83">上传路径</td>
						<td width="83">上传路径</td>
					</tr>
					<tr>
						<td>.Form(Item&amp;&quot;_Size&quot;)</td>
						<td width="83">&quot;&quot;</td>
						<td width="83">&quot;&quot;</td>
						<td width="83">文件大小</td>
						<td width="83">&quot;&quot;</td>
						<td width="83">文件大小</td>
						<td width="83">文件大小</td>
					</tr>
					<tr>
						<td>.Form(Item&amp;&quot;_Ext&quot;)</td>
						<td width="83">&quot;&quot;</td>
						<td width="83">&quot;&quot;</td>
						<td width="83">扩展名</td>
						<td width="83">&quot;&quot;</td>
						<td width="83">扩展名</td>
						<td width="83">扩展名</td>
					</tr>
					<tr>
						<td>.Form(Item&amp;&quot;_Err&quot;)</td>
						<td width="83">&quot;&quot;</td>
						<td width="83">-1</td>
						<td width="83">&quot;&quot;</td>
						<td width="83">-1</td>
						<td width="83">0</td>
						<td width="83">1/2/3</td>
					</tr>
				</table>
				<p>
					注：<br />
					1）&quot;&quot;表示空字符串<br />
					2）.Form(Item)=&quot;&quot;的时候，文件均不会保存到服务器上<br />
					3）自动保存模式（.AutoSave=0 or 1）文件保存与对象打开同时发生<br />
					4）手动保存模式（.AutoSave=2）文件保存发生在调用.Save(Item,FileName)时
				</p>
				<p>4、同名文件域上传，仅处理第一个，其他忽略。</p>
			</div>
		</div>
		<div id="Copyright">
			风声 ASP 无组件上传类 V2.11<br />
			&copy;2008 Powered by <a href="http://www.fonshen.com/" target="_blank">fonshen.com</a>
		</div>
	</div>

   	<script type="text/javascript" src="http://www.fonshen.com/scripts/works.asp" charset="UTF-8"></script>
</body>
</html>